#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_Exp2.h"
#include <QtMultimedia/QMediaPlayer>

class Exp2 : public QMainWindow
{
	Q_OBJECT

public:
	Exp2(QWidget *parent = Q_NULLPTR);

private:
	Ui::Exp2Class ui;
	QMediaPlayer *m_pPlayer;
	void SetGeometry();

	void Connects();

	void CenterWidget(QWidget * pWidget, int y);
	
private slots:
	void OnPushButtonNetCheckClick();
	void OnPushButtonTTSClick();
	void OnPushButtonPlayClick();
};
